//
//  AXFConvertRecordVC.m
//  BEEQUICK
//
//  Created by admin on 22/11/2016.
//  Copyright © 2016 SevenGroup. All rights reserved.
//

#import "AXFConvertRecordVC.h"
#import "AXFWhiteNavView.h"

@interface AXFConvertRecordVC ()<AXFWhiteNavViewDelegate>

@end

@implementation AXFConvertRecordVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)setupUI {
	UIImageView *emptyBoxImgView = [[UIImageView alloc] init];
	UILabel *infoLabel = [[UILabel alloc] init];
	
	[self.view addSubview:emptyBoxImgView];
	[self.view addSubview:infoLabel];
	
	emptyBoxImgView.image = [UIImage imageNamed:@"v2_goods_empty"];
	
	infoLabel.textColor = [UIColor cz_colorWithHex:0x999999];
	infoLabel.font = [UIFont systemFontOfSize:15];
	infoLabel.text = @"你还没有兑换过商品哦~";
	
	[emptyBoxImgView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.centerX.offset(0);
		make.top.offset(172);
	}];
	
	[infoLabel mas_makeConstraints:^(MASConstraintMaker *make) {
		make.centerX.equalTo(emptyBoxImgView);
		make.top.equalTo(emptyBoxImgView.mas_bottom).offset(33);
	}];
	
	AXFWhiteNavView *whiteNavView = [[AXFWhiteNavView alloc] init];
	
	[whiteNavView setTitleName:@"积分商城" andFunctionName:nil];
	
	whiteNavView.delegate = self;
	
	[self.view addSubview:whiteNavView];
	
	[whiteNavView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.left.right.top.offset(0);
		make.height.mas_equalTo(kNAVBARH + 20);
	}];
}

- (void)backToViewController {
	[self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
